package com.yyfax.pay.depository.dao;

import org.apache.ibatis.annotations.Param;

import com.yyfax.pay.depository.domain.FuiouChangePhone;

/**
 * 更换手机持久化接口
 * 
 * @author buyi
 * @date 2017-09-29 08:59:33
 * @since v2.0.0
 */
public interface FuiouChangePhoneDao {

	/**
	 * 保存更换手机订单信息
	 * 
	 * @author buyi
	 * @date 2017-09-28 14:20:41
	 * @since v2.0.0
	 * @param record
	 * @return
	 */
	int insert(FuiouChangePhone record);

	/**
	 * 根据业务主键更新信息
	 * 
	 * @author buyi
	 * @date 2017-09-09 11:24:12
	 * @since v2.0.0
	 * @param record
	 * @return
	 */
	int updateByBusiId(FuiouChangePhone record);

	/**
	 * 根据商户号和订单号查询
	 * 
	 * @author buyi
	 * @date 2017-09-09 11:26:00
	 * @since v2.0.0
	 * @param merchantCode
	 * @param orderId
	 * @return
	 */
	public FuiouChangePhone selectByMerchantCodeAndOrderId(@Param("merchantCode") String merchantCode, @Param("orderId") String orderId);

	/**
	 * 根据业务主键获取订单
	 * 
	 * @author buyi
	 * @date 2017-09-09 11:58:39
	 * @since v2.0.0
	 * @param busiId
	 * @return
	 */
	public FuiouChangePhone selectByBusiId(@Param("busiId") String busiId);
}